import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    title: '学校官网',
    isleft: false,
    istab: true,
    istabbottom: true
  },
  getters: {
    gettitle(state) {
      return state.title
    },
    getisleft(state) {
      return state.isleft
    },
    getistab(state) {
      return state.istab
    },
  },
  mutations: {
    CHONG_TITLE(state, data) {
      state.title = data
    },
    CHONG_ISLEFT(state, data) {
      state.isleft = data
    },
    CHONG_ISTAB(state, data) {
      state.istab = data
    },
    CHONG_ISTABBOTTOM(state, data) {
      state.istabbottom = data
    }
  },
  actions: {},
  modules: {},
});
